Skip to content

Conversation

agedd
Copy link
Contributor

@agedd agedd commented Oct 15, 2025

Summary of changes

  • Update BTPostalAddress Parameters

Checklist

  • Added a changelog entry
  • Tested and confirmed payment flows affected by this change are functioning as expected

Authors

List GitHub usernames for everyone who contributed to this pull request.

@agedd agedd requested a review from a team as a code owner October 15, 2025 18:07
* Update `BTPayPalLineItem` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeVenmo
* Update `BTVenmoLineItem` to make all properties accessible on the initializer only vs via the dot syntax.
* BraintreeCore
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do we care about alphabetical order here?
BraintreeCore before BraintreePayPal?

let countryCodeAlpha2 = self["country"].asString() ?? self["countryCode"].asString()

return BTPostalAddress(
recipientName: recipientName,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker, very much a take it or leave it. For these instead of making them all stored properties we could also just this inline:

Suggested change
recipientName: recipientName,
recipientName: self["recipientName"].asString() ?? self["fullName"].asString(),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants